package com.woniuxy.amusementparkos.entity.wyh;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.woniuxy.amusementparkos.entity.xxy.Order;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class WristStrap_Info {
	// 腕带信息id 主键
	private Integer info_id;
	// 腕带印刷号
	private String wriststrp_id;
	// 使用状态
	private Integer info_state;
	// 余额
	private BigDecimal balance;
	// 创建时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createtime;
	// 结算时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date endtime;
	// 客户信息
	private Customer customer;
	// 操作员
	private Integer operater_id;
	// pos机id
	private Integer pos_id;
    //与订单：一对多
	private List<Order> orderse;
	// 与腕带仓库：一对一
	private WristStrap_Repository wriststrp_repository;

	public WristStrap_Info(Integer info_id, String wriststrp_id, Integer info_state, BigDecimal balance,
			Date createtime, Date endtime, Customer customer, Integer operater_id, Integer pos_id) {
		super();
		this.info_id = info_id;
		this.wriststrp_id = wriststrp_id;
		this.info_state = info_state;
		this.balance = balance;
		this.createtime = createtime;
		this.endtime = endtime;
		this.customer = customer;
		this.operater_id = operater_id;
		this.pos_id = pos_id;
	}


}
